home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15152 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: solon.com!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c.moderated,comp.lang.c
  4. Subject: Re: fflush(stdin) - not guaranteed to work?
  5. Date: 17 Apr 1996 10:45:35 -0500
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4l33mv$7qf@solutions.solon.com>
  10. References: <4ksjpn$rjt@solutions.solon.com> <4ku3id$53h@solutions.solon.com> <4l1idn$pvs@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12.  
  13. In article <4l1idn$pvs@solutions.solon.com>,
  14. News User Id  <news@eskimo.com> wrote:
  15.  >Before anyone goes off and looks and is disappointed (actually,
  16.  >it's probably too late for that), the only system-specific
  17.  >question that the comp.lang.c FAQ list answers in that much
  18.  >detail is, "How do I read one character without waiting for
  19.  >the RETURN key?".  To the implicit followon question, "If
  20.  >fflush(stdin) won't work, how *can* I flush the user's typeahead
  21.  >before issuing a prompt confirming whether I should reformat the
  22.  >hard drive?", the FAQ list suggests no answer, because I don't
  23.  >know a good one (other than, your program probably shouldn't be
  24.  >offering to do that at all).
  25.  
  26. Ah, right. My apologies. I was thinking along the lines that these two problems
  27. are so closely related that the answer to one is really tied to the other.
  28. Though it doesn't have a ``canned'' answer for various platforms, the FAQ does
  29. give some leads in the right direction.
  30. -- 
  31. I'm not really a jerk, but I play one on Usenet.
  32.